package server.business.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.BloodTransferInformation;
import server.business.service.BloodTransferInformationService;
import server.business.utils.results.ysl.Result;

import java.util.List;

@Slf4j
@RequestMapping("/bloodinformation")
@RestController
public class BloodTransferInformationController {

    @Autowired
    public BloodTransferInformationService bloodTransferInformationService;

    @RequestMapping("/normal/getAll")
    public Result getAll(String id){

        List<BloodTransferInformation> bloodTransferInformations= bloodTransferInformationService.getAll(id);
        return Result.success(bloodTransferInformations);
    }

}
